Only enabling refreshes if ajax callblack available