add events. refactor pathway-diagram