Tabs now switch correctly