added more to controller.js.coffee