added UIAlertViews for confirm and cancel