change all window references to @ at correct context