adding and updating routes