fixed bug with xml load/save and added clear button on log window