add markup for pagination