To check all the related checkbox with a checkbox or button