Modified index with template