add dialog base window logical.