Consistent modalDialog with dialog