Implemented view switch.