fix for delete route & edit