added switch so that selection now displays node info and another button allows editing