moved pagination into its own include