added indexController.js