update windows.cpp