optimize the search view, back and front.