connecting Gui interface