Adding autofocus on scrolling