finished most of search view