wip - events

modified event model and implemented logic for creating new events