Fix Issue #481: Dialog improvement (adding binding callback to custom contexts)