add viewFunc: wgfUrl to create url in tpl