pass callback function on specific modal events directly in cfg