added controller.js