Added form submit callback to dismiss modal on submit