Remove unnecessary running gif, remove existing connection when placing new connection with proper undo/redo support