Update the tree.js to update the position of the selected node when nodes are moved (to ensure it's hidden input value for position is kept up to date)