update the html code