GUI Main window patch