Added edit functionality to route management