sorted out invoices.index route