created jsx event handler to control board