Clicking search bar correctly hides and shows views and empties search bar value