clean up index template