logout with modal dialog