added pagination for logs