Tie the state of the refresh button to the current ogoing search