add dialog, finish mainwindow part