fixed Search

fixed GUI, added clear function