moved xml template to code; added empty source button
moved xml template from html; populating general core collection; dealing with empty source selections