Improve move method to moving nodes to the root nodes