SideBar working

can switch views from the side bar