Update listener.php

Add dispatcher and event