fix: auto close modal on submit