reorganizing htmls