Add view switch java