finish the qrcode scan event handler