make buttons responsive to events on the board