add log pagination and formatting