setup for dynamic pagination on search