add EventListenerCommand snippet