update node labels when connecting or disconnecting