Refactor user index

make the code more compact by putting li in a partial