change searchdialog to use ui