Added click event to hide autocomplete results