generated index controller for home page