fix missing/extra closing tags, misc. IE fixes