commit before deleting table model in case it is needed
save changes to KeyFileDialog.cs before deleting stuff
got all buttons working, added passphrase dialog