make the new node dialog aware of different node types