adaption for iOS7