Add basic pagination to the UI