templates index rebuild