Only refresh table if the view is currently visible