setup custom pagination