updated mainwindow model & eventing