Moved window creation to the user interface source file.