update link method