Insert modal to handle DOM.

Insert modal to handle DOM.