Modify views for the correct output after searching