added the event listener and handler
Merge branch 'master' of https://github.com/socho/edx