implemented the delete node dialog