updating job history