Refactoring updateLink to conform to node reference instead of id.