Update scripts to the new dialog API.