listen for checkbox change events well, but has pass-by-reference issue when calling to plot two items