Fix two issues in  ellipsis pagination

Fixed two issues.

* Button selector(prev, first, next, last) will change all datatables instances in current page.

* Next/last page buttons are not disabled if no records in table.