updated scroll functionality.