updating the html code