refactored the userbar view