alert when closing reveal if form is edited