add ajax, but broke paginate