Updated iOS appdelegate to work correctly with iOS 8