upgrade to ext 5.1 and fix pagination