onNewNode

added onNewNode callback