almost got dropdown dismissal working