updated html formatter