broswer compatibility fixes