removed _onLogout