fix show next-prev button in view.tpl