check leap in Dialog