Correctly support multiple sets of tabs on the same page.