Updates to main.tpl