Added UIAlertController property for iOS 8. Moved alert view for iOS 7 to a property.