Setup window to global explicitly
Update sample