Modal dialog models now receive detached callback.

Removed api docs from source.