misc fixes to Pgo UI, fix Pgo xml file writing