converted old search-shell to a search dialog to prevent the dialog from going to the background