finished category add/delete function