fixed ipad orientation bugs