settings updated, few fix in mainwindow