made search update when the buffer bytes change