Update dupes when node is moved / deleted. Needs further refactoring