removed angular scope and compile, fixed the event data model