Added some event listeners in the coffeescript file.