added controller for home and index