Add pagination support to UI.