adding pager and start working on api