set refresh to false if the device is not connected