Paginate hopfully working in flag view