support paginated table.
remove unnecessary codes.
add paginated model