remove outlet

- added function to remove extra outlet
- implemented when undoing inserting a line