Getting the checkbox listener notified when the checbox state changes
Formatting