Created an invoice view
Some refactoring
Some validation