Reformat main HTML page