write and read config xml file, but bug while read xml file and rendering does not happen in first window