Update to template index