added reLinkSites functionality