Settings saving changed to XML