update the workorders