minor bugs and note to start tomorrow on ui.mainwindow:340