got the toggle button to finally work