fixes search option in GUI