Add logic for add/remove waypoint on click