Added routing to switch between views.