added toggleButton to switch between cardLayouts