fix edit routes