added tpl to ui