invoices ctrl working