add view switch