this should be a call to the paintRoute function.