Changed SearchDialog to modal dialog.