add events for barcode scanner and picture capture