moved scrolldown handling where it should happen