Pagination for logs and logs and 404 error custom page