guarantee showMainMenu is a valid function