cleaned up node editing