cleanup index.tpl