update controller catalog - assign id in cat and subcat