samples: added json command in hello app
app: added controller hook methods