wrap dialog inside dialog-container for center dialogs with flexible width and height