Implements search dialog.