removed switch statement in lieu of better code regarding default views
removed switch statement in lieu of better code regarding default views

Plantalytics/plantalytics-frontend,Plantalytics/plantalytics-frontend