Changes to main.tpl