added better formatting to auto generated html