added search functionality to invoices