Add the feature of pagination