edit index after template change