Altering refresh button state