Changed searchbar clear logic