add pages to each link