update qrcode scan flow