integrated TemplateData into View; updated IndexTemplate to use
TemplateData;