rename tabId to registeredTabId