Made refresh button inactive when there isn't data. Prevents crashes