from selectedNode from session to variable