adding event listening support
Merge pull request #156 from mtnlife999/master

adding event listening support