Added pagination to lists of topics and lists of posts