reformat homepage html code