change from deprecated dialog to simpler logout behavior