Edited the search bar so as to search also on click.