Save scroll state
Removed unnecessary code