pagination and edit