after completing pagination and edit