Show loader after submitting form in modal