Moved index from app.php into IndexController.php