added pagination to app