update index with template