add the function of qrcode