merging addMenuItem with addSubMenuItem