Handle changing pubkey