Add implementation for addMenuItem