mui: parse layouts from text description
minor re-arrangements