cleaning and made a QDialog