Fixed minor issues with the paging

- added a couple of test to correct some wrong paging problems.
- updated view to on/off the buttons at paging footer.