add preference to enable/disable QR code