function for changing the company relation for a job