now modifies existing link instead of adding a new one