updates the html file