cleanup of index template