clean up main view html