When copying MainForm code to somewhere else, "this" should have been replaced.

To fix them, reviewed every use of "this" in the new menu model files, and
replaced some "object" uses with "UiForm" to make sure it gets correct argument.