Updates the example using the new_ui function, and call fit_contents - [x] I have followed the instructions in the PR template