index template set up and working.