don't submit the form when the X button is clicked