refactor invoices front page