separate and edit category