directory detail: fix TypeError(page, items_per_page)
directory detail: add page & total_pages into response