Build Index Template