add some hook function, instll after, close after, reset pagination after.