i created the MenuItemWithChildren class that displays the recent files as sub menu items.