update rendering and barcode validation