implement category deletion