dynamically population direction from selected route