Added partial support for modal dialogs

Topcoat modal dialogs are not ready