add undo redo hotkey, ctrl key to connect first point and shift key to keep hover line horizontal or veritcal