update UI based on event type