partial refactoring user/index