fixed a a bunch of html bugs