Added pagination, fixed many bugs in the reading logs by date.