Add pagination to the command history page.