Sets favored state on button click
Connects command to button