Fix defining the menu items property
Change to use defining menu with a model