fix view.tpl