Created function to add menu items to the menu bar specifying the menu path where they should be added.