edit category flag from SAMPLE to PREFERENCE