reformat the html