clean up pagination feature