Modal form submission closes the modal