refactor users view