refactored 12 _addMenuItem* functions