use API for pagination

Pagination feature should not use exclusive controller methods, but use general message list APIs.