Enhance queryBuilder: keep pagination to allow to display pagination after the query