improve ui for mainwindows