better error handling on invoices view