Use context and executeAction instead of dispatcher directly

@lingyan I may have missed something in here like documentation, but I will push the flux-example updates as well so you can see the changes made there.
Yeah, that's the idea.