add eventCard and eventDetailCard directives