CHANGED:applied the UIAlertView dismiss button index handler