fixes for safari, ios, iphone, ipad orientation change