edit function done, start pagination