iOS 8 update

fixed register for notifications for iOS 8