Fix url pasting, and make sure the panel closes after saving one search result.