Made the search bar work with live query