Added template index to template detail