small changes in IndexController.php