Updated controllers.js