reformat html so it is neat