updates edit category