modify workorder controller