move event handler to BoardPanel