controller for qr