checkbox listener is now applied only once