Added functionality for the search widget at the top of the views