Modified code to display help according to chosen tab.