Adjusting html formats to the new format