[ddbnext-27] modulirize template and add pagination[wip]