Fix for iOS where orientation works differently
Support for iOS8