Removed unused code. fixes for iOS alert view dismissal