Adding a parent node to Tree Model

I too want to use a tree model and use the incremental tree example. Adding children to the model works perfect. Now i added a new button which will help me to add a parent to the node 0.

When i see the parentnodekey for node 0, it does not work…