Create main window class and some gui preparing