added search box to layout, and strted view logic