console log on clicking search button