added: function to quit the form after a confirmation