Add pagination logic and navigation for all pages where pagination may occur