Implemented refreshing on tab activation.