Change MainGUI from QDialog to QMainWindow