changed controller and index file