removed pagination when result count is zero