use correct routes in edit view