Add custom event to close autocomplete