change the link of pagination