create and update functional on workorders