prettied the add dialog, init dialog, and added mainwindow code slots