Add line connection class and UI