Moved dialog main dom under body

Moved dialog main dom under body