make sorting and scrolling