add pagination.tpl and edit View.php