completion of flag list and sub menu