reformat index html