get and plot QR code functions