modified homeController and index