html output reformat