adding deleting function back to workorders.php