changed the way the open work order functions