implemented relation events
Merge pull request #131 from evillemez/events

implemented relation events