Handle event types