finish index template