Completed custom template for pagination #57