handled pagination with client session attributes