a function for creating pairs of trait ids and their corresponding page urls..