buttonifies increment and decrement in template.