Added functionality to the search bar in the master blade