added pagination code, draw 10 lines only, but not sorting/filtering