More nanoUI template fixes