generated index controller to use for main page