Added pagination to topics and posts views