addition of popup on click of node.  Reduce scope of functions and variables.  A little more styling