qrcode and lifecycle