Tweaked the html layout so that it can be refreshed by changing the state of the container.