main.tpl: remove useless closing div and fix indent a bit