use selectedItem of node directly