Some improvements to new gui, typescript.