implement transition hooks
Merge pull request #13 from nateabele/transition-hooks

implement transition hooks