added search button functionality to view toggling