create logic for event list