add paging to topics.php