Refresh environment on example change