implemented scroll to waypoints