Implemented content lock when popup is moved.
Unselect node when it is removed and selected