clean up state for scrolling