index with template