Factorisation and save sub category config in gui