remove old dialog