Made property box dependent on the node selected.

Also made the dialog option node the selected node immediately after
adding.