main html cleanup