Exposing the QR code keeps the key string exposed
Hiding the private key redirects to the same page without parameters
Some refactoring