Implement a generic pager using mvp pattern