Reimplemented node moving and tree moving functionalities