Added toggle button functionality.