setup main tpl