Install and configure pagination