made some changes to the GUI
removed connectDialog Class
added it as a method in GUI Class