model add search sort and pagination