yet another pagination template modified
check  $title to avoid error