adding basic QR code functionality