switches how the event handler is configured