Updated search function

An issue has to be solved - when click the GO! button for second time
after a successful or not successful search, the program crashes.