update on mainwindow.cs