updated getLinksOnPage to add link's page to a list