Implemented UIAlertViewDelegate method to detect when button is clicked