set the hashes from the dialog