added support for event handler with no arguments