Updated the View with the search function