Added pagination to topics and posts