rewrite ViewSwitcher