cookbook : view helper