Added the remove functionality to the search widget