Added route editing functionality