refactor the html