Wrapper of jquery-ui dialogs