updates the html.