refactored callback for the click on a node to the config object to the mindWeb constructor