Added logic to make the pager better and make it depend on the same paths as the jobs table