Refactor jobsDetail