added paginatednews function