update function for attendee