added source code for main window of the GUI