added save/load to xml functionality