parse pagination and links for add