further refine pagination to prevent scrolling across various pages. optimized for laptop