Update selection restore and add textnode merge on cleanup