If you aren't experienced in using LUA and XML from base, then it's a bad idea to use a designer. As you've discovered, if something goes wrong you'll have no idea how to fix it.
In the meantime, please repost your code above at
pastey.net and link it. It'll be a lot easier for people to read and help troubleshoot.