Dialogs are part of the page now.
fix autofocus