added routes and click events to toggle through views