Now uses a ui file to populate the menu.