small template improvements for view.tpl