changing relation event-slot to event has_one slot