added the basis of a search dialog Toplevel widget function