some changes to get the export frontend working

still need to figure out how to properly fix createKML.inc.php