updating search to preview