add example to demonstrate listener in plugin