added signout and alerts