barcode generates and views bugs fixes