Updated the mfem widget to split into layout and structure layers