updated index with template