Fixing bugs in displayDialog, the object is now correctly cleared allowing full us of decryption. Private key is no longer cached, should fix later.