update demo for iOS 7