fix variable definition of tabId in showTabMenu