added sorting and searching to users