add a check to see if we need to scroll the result or not for the first match