Tabs functionality mostly done.