Changed where updateTabStyles is called.