Fix issue regarding nonfunctional refresh button