updated category deletion