updates for category deleting and editing