Edit of main.tpl