changed the oncheckedchange listener to an onclick listener so that setting checked state doesn't fire the listener