Separating out index template from controller.