add dsl method for custom event handler