working toggles for visualization (messy code)