adding the rest of pagination