cleanup grid pagination and scroll top on page/grid change