made deleting categories persistent