added pagination to topics and posts views