controller for barcode