Added logic for drawing route