add paginate, left 2 bugs need to fix