Added pagination, customized the HTML renderer for pagination