working function to add search results to an itinerary