Hooked up a generic event listener mechanism