matched tags properly for invoice view and print view