modified custom event handler customMasterChecked