not using popup
pagination if collection.length > 0
if totalpages >= 1