fixing confirm dialog