updates for iOS 7 compatability