window title and html cleanup