Move action handler to actions object in example
Merge pull request #971 from fphilipe/patch-1

Move action handler to actions object in example