not sure the window is updating correctly