Set the searchbox function