adjust to iOS 7