recalculate the links as soon as the portals are loaded