We would need to have an alert message if we click on the close button after editing some fields to be aware that we will lose them.