store original node list and only change it when the okay button is clicked