Updated dialog.sh