set the link ID's