Angular changes, hit listInvoices to get lastInvoiceId and such - horribly messy, need to tidy up once working