Add an option to choose the event that handles the modalrunner.