added support for iOS 7