Setup for web ui
GetPublicKey event
Public key now shows correctly in web ui