modified invoices controller and views