Fixing two bugs in generate keypair dialog (function was duplicated) and missing textarea element.