fix edit and add route