fixes in indexController.java