eventForm logic