user index code refactor