fix prevent hiding modals on form submit