Add edit routes functionality