Further work on generate new qr code