pagination added to all pages