WIP: Fixing roles of logic, MRML, and widget. Codes does not compile!