cleaned up controllers.js