cleaned the index template