lots of html tag cleanup - there were many unmatched div elements :-(