Dialogs should be internal, replaced some used api which was removed incorrectly