added detection for iOS 7