added some MainWindow UI front-end functions