added tpl for views