Changed template for pagination