fix for nested modal dialog cookbook issues