implemented background-color switching for Tabs