prepare the complete html
update the html