update link correctly