sort and pagination work, but style not pretty