Added support for autosaving the window frames