add missing setMainTemplate to UI interface, move XML_UI to UI_XML (legacy fix)