updated view and fixed barcode printing