Update GUI. Rewrite BaseWindow.