set up pagination, created categories, and created associations between categories and posts