Fixing bug with event creation, creating event model