public function deleteItem($id)
    {
        $updatedItems = $this->values['items'];
        foreach ($updatedItems as $index => $item) {
            if ($item['id'] == $id) {
                unset($updatedItems[$index]);
            }
        }
        $this->values['items'] = array_values($updatedItems);
    }