Remove duplicate element and update link tag