added support for iOS 8 alert controller