SubmitListenerHelper updated to use modal as an option to submission
window.