Update Window.cpp code