created _listenerHandler() closure for event handling