html cleanup/error fixes