Add dirty tracking for invoices

Shows invoices in red if for example navigating back without first saving