slight change to main window.cs