add api toggle of line