add modelDestroy and fix category destroy