directly define callback fns on specific modal events in modal options