Update export modal to auto close after submitting the form.