job pagination and cleanup for jobs