Added text widget content at startup plus improved closing file after saving