add event handlers for + and - buttons