fix ipad orientation change issue