working with the alert view and the action sheet