changed the coding in toolbarview for logout