move event actions to event.c
move event actions to event.c; remove some headers