implemented the qrcode scanner