remove old dialog api