update route on edit page