ie and firefox compatibility fixes