nit: `onSubmit.call(dialog);`