Embedding Inside a div Element


I’m new to vaadin framework and i’m embedding an UI inside a div element. Everything works fine for the first time. Then i add a new item, what i’m expecting is showing the added item inside the div. That doesn’t work as expected. Current behaviour is only after logout-login(relogin) it’s working as expected.

Followed the below link:

Did i missed anything?