add sub menu support