indexAction view logic is now done in the view.