more verbose example for events
fix issue with firefox not working