add delegate 

The delegate method is used to notify the client class which use the checkbox class , when the state of checkbox change