cleaning up the html output