gui: proper dialog for private keys (fixes issue #500)