adds functionality that draws route