Added uiAlert to logout.