moved main window class definition in seperate file