refactoring users view