Update Window

deleted the duplicated code....