qrcode generate before popup