resolved the window.Explore scoping issue