connect CaseDecoder and LayoutElement