I've suppressed set_gui which was irrevelent and use set_main_windowinstead