generator dialog ui, Template object, appending templates content to file, file creation refactoring