Emitted when the user clicks the button and also when the "activate" signal is generated.
Callback function