Added possibility to customize pagination buttons

Added possibility to customize pagination buttons with a template.