CLSN-2062 add css classes as per parent or child level