Added pagination for posts and topics