remove depreciation of dialog creation