add `changeMode` event
Merge pull request #80 from vitalets/master

add `changeMode` event