get click action to dismiss when clicking outside of the target, label, or popup