preparing barcode frame, and actions