Updated index to template