click on a node/edge to select and then do action