if clause for event show