added blog post handling and pagination