added pagination to chart show