Made viewSwitcher work!