The "toggled" signal is emitted when the user changes the state of the toggle button.
Callback function