significant improvements to ui and code generation