refactored pagination and added pagination to job persons