userInfoService and appHeaderDirective refactor