#887 show pagination if no of pages > 1

#887 added condition to check if num of pages > 1