cancela function which is called on click of the Cancel buttonconfirma function which is called on click of the OK button