GUI main window patch