add nonce to upgrade click