make the Tabs component preserve the states of individual tabs