added check not to display pager if less than 1 page