clear undo buffer after saving. improve initial window focus