when an event is added to the selectedEvents, updates the invoice