paginate computes extra info only for results, improved clear history form