minor change in controller.js