renaming and a little refactoring.
small refactoring.
added support for auto connect when selecting nodes.