remove unnecessary old dialog