initial refactoring. View resource and zf2Helper view helper