Adds a global main window class
Fix merges