changed how views are switched: