Added status functionality to invoice