modals close on submit