populates route objects from url