auto refresh with QR code