update find and replace to select elements from the results list