category destroy function update