Updated themeSwitcher to stateful.