move pager adapter to separate file