Change the state of the refresh button.