Add tabId as an index for the buttons state