creation of view helper with config and factory