added fix for portrait iPad