switch the header when the tabs are pressed