Updated html renderer with a pagination class