One more condition added inorder to display pagination, if it is only pagination enable.